# Maintainer: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Brian Nguyen <bhnguyen@gmail.com>
# Original Packager: Tom K <tomk@runbox.com>

pkgname=hevea
pkgver=2.36
pkgrel=1
pkgdesc="A quite complete and fast LATEX to HTML translator"
arch=(loong64 x86_64)
depends=('texlive-bin')
makedepends=('ocaml' 'ocamlbuild')
license=('GPL')
url="http://pauillac.inria.fr/~maranget/hevea/"
source=(http://pauillac.inria.fr/~maranget/$pkgname/distri/$pkgname-$pkgver.tar.gz)
sha256sums=('5d6759d7702a295c76a12c1b2a1a16754ab0ec1ffed73fc9d0b138b41e720648')

build() {
  cd $pkgname-$pkgver
  make PREFIX=/usr
}

package() {
  cd $pkgname-$pkgver
  DESTDIR="$pkgdir" make install
  mkdir -p "$pkgdir"/usr/share/texmf/tex/latex
  ln -s /usr/lib/hevea/hevea.sty "$pkgdir"/usr/share/texmf/tex/latex/hevea.sty
}
